package model;

import java.util.Date;

public class Message
{
	private Date created;
	private String title;
	private String comment;
	private MessageType type;
	
	public Message(Date created, String title, String comment, MessageType type)
	{
		this.created = created;
		this.title = title;
		this.comment = comment;
		this.type = type;
		
	}

	public Date getCreated()
	{
		return created;
	}

	public String getTitle()
	{
		return title;
	}

	public String getComment()
	{
		return comment;
	}

	public MessageType getType()
	{
		return type;
	}

	public void setCreated(Date created)
	{
		this.created = created;
	}

	public void setTitle(String title)
	{
		this.title = title;
	}

	public void setComment(String comment)
	{
		this.comment = comment;
	}

	public void setType(MessageType type)
	{
		this.type = type;
	}
}
